﻿using Basic.FormRemoteModel;

namespace Basic.UserFormService.Model
{
    public class ColFormula
    {
        public long ColId
        {
            get;
            set;
        }
        public long TableId
        {
            get;
            set;
        }
        public FormRecordDataType DataType { get; set; }
        public string Name
        {
            get;
            set;
        }
        /// <summary>
        /// 完整公式
        /// </summary>
        public string Formula { get; set; }

        /// <summary>
        /// 公式变量对应的列
        /// </summary>
        public ColFormulaVar[] VarCol
        {
            get;
            set;
        }
    }
    public class ColFormulaVar
    {
        public string Name { get; set; }

        public string Key { get; set; }

        public long TableId { get; set; }
        /// <summary>
        /// 列ID
        /// </summary>
        public long ColId { get; set; }
        public long? DicId { get; set; }
        public DataFuncType FuncType { get; set; }
        public FormRecordDataType DataType { get; set; }

        public string DefValue { get; set; }
    }
}
